import request from '@/utils/request'

const baseURL = 'http://localhost:39203/carbon/news'

// 分页查询行业资讯
export function pageList(data) {
  return request({
    url: '/queryNews',
    method: 'get',
    params: {
      page: data.page,
      size: data.size
    },
    baseURL: baseURL
  })
}

// 分页查询政策解读
export function queryPolicy(data) {
  return request({
    url: '/queryPolicy',
    method: 'get',
    params: {
      page: data.page,
      size: data.size
    },
    baseURL: baseURL
  })
}

// 分页查询原创干货
export function queryOriginGoods(data) {
  return request({
    url: '/queryOriginGoods',
    method: 'get',
    params: {
      page: data.page,
      size: data.size
    },
    baseURL: baseURL
  })
}
